/*
 * @Author: liu.lin liu.lin@hzleaper.com
 * @Date: 2023-11-08 11:05:26
 * @LastEditors: liu.lin liu.lin@hzleaper.com
 * @LastEditTime: 2023-11-16 15:57:23
 * @FilePath: \aoi_link_frontend\src\router\menu.tsx
 * @Description: 菜单栏
 */
import React from 'react';
import SynthesizeMap from '@/page/synthesize-map';
import MarkingAnalyse from '@/page/marking-analyse';
import FpyAnalyse from '@/page/fpy-analyse';
import Config from '@/page/config';
import HistoryData from '@/page/run-data';
import LineYieldAnalyse from '@/page/line-yield-analyse';
/**
 *   {
 *       name: '缺陷卡片查询', // 标题
 *       unMenu: true, // 不在标题中显示
 *       unRouter: true, // 不是路由跳转
 *       unTab: true, // 不是当前tab跳转
 *   }
 * */
export interface MenuItem {
  path: string;
  element: React.ReactNode | React.ReactElement;
  meta: {
    name: string;
    unMenu?: boolean;
    unRouter?: boolean;
    unTab?: boolean;
  };
}
const menu: MenuItem[] = [
  {
    path: 'synthesize-map',
    element: <SynthesizeMap />,
    meta: {
      name: '综合Map分析'
    }
  },
  {
    path: 'marking-analyse',
    element: <MarkingAnalyse />,
    meta: {
      name: 'Marking分析'
    }
  },
  {
    path: 'fpy-analyse',
    element: <FpyAnalyse />,
    meta: {
      name: '直通率分析'
    }
  },
  {
    path: 'line-yield-analyse',
    element: <LineYieldAnalyse />,
    meta: {
      name: '线别良率分析'
    }
  },
  {
    path: 'config',
    element: <Config />,
    meta: {
      name: '后台管理'
    }
  },
  {
    path: 'history-data',
    element: <HistoryData />,
    meta: {
      name: '跑数据'
    }
  }
];

export default menu;
